package com.xbongbong.pro.detailtab.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * Description:
 *
 * @Author: pkh
 * @Date: 08-12
 */
@Getter
@Setter
public class CustomerInvoiceSetDTO extends BaseDTO {
    private static final long serialVersionUID = 684372512933870588L;

    /**
     * 发票信息id
     */
    @NotNull(message = "{dto.msg.customerInvoiceSet.customerInvoiceId.NotNull}")
    private Long customerInvoiceId;
    /**
     * 操作寄送信息,1代表删除,0代表设为默认
     */
    @NotNull(message = "{dto.msg.customerExpressSet.setDefaultOrDel.NotNull}")
    @DecimalMin(value = "0", message = "{dto.msg.customerExpressSet.setDefaultOrDel.DecimalMin}")
    @DecimalMax(value = "1", message = "{dto.msg.customerExpressSet.setDefaultOrDel.DecimalMax}")
    private Integer setDefaultOrDel;
}
